import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

public class Demo {

    public static void main(String[] args) {


        int k = 0;


        String t = "";
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        int p = 0;
        while (k / 10 > 9) {
            p = k % 10;
            if (p % 2 == 0) {
                t += "0";
            } else {
                t += "1";

            }
            k /= 10;
        }
        p = k % 10;
        if (p % 2 == 0) {
            t += "0";
        } else {
            t += "1";

        }
        k /= 10;
        if (k % 2 == 0) {
            t += "0";

        } else {
            t += "1";

        }

        char[] a = t.toCharArray();
        int l = a.length;
        char[] b = Arrays.copyOf(a, l);


        int left = 0;
        int right = a.length - 1;
        while (left < right) {
            char dd = a[left];
            a[left] = a[right];
            a[right] = dd;
            left ++;
            right --;
        }



        while (a[0] == '0' && a.length > 1) {
            for (int i = 0; i < a.length - 1; i++) {
                a[i] = a[i + 1];
            }
            l--;
            a = Arrays.copyOf(a, l);
        }

        for (char x : a) {
            System.out.print(x);
        }

    }
}
